@extends('common')
@section('content')
<div align="center" style="margin:left; width:600px;margin-top:70px;">
	<h3>新增车辆</h3>
	<br>
    <form action="/execu/newvehicleadd" method="post">
    <input type="hidden" name="_token" value="{{ csrf_token() }}" />
    <table>
      <tr>
     	<td><b>车牌号</b> : </td>
     	<td>
			<input type="text" name="c_num" pattern="\[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}\" required>
		</td>
     </tr>
     <tr>
     	<td><b>行驶证号</b> : </td>
     	<td><input type="text" name="c_license" pattern="\[A-Z0-9]{17}\" required></td>
     </tr>
     <tr>
     	<td><b>车型</b> : </td>
     	<td>
          <select name="c_arctic" required>
               @foreach($arr1 as $k=>$v)
                    <option value="{{$v->pap_name}}">{{$v->pap_name}}</option>
               @endforeach
          </select>
          </td>
     </tr>
     <tr>
     	<td><b>车辆类型</b> : </td>
     	<td>
               <select name="car_id">
                    @foreach($arr2 as $k=>$v)
                         <option value="{{$v->coa_id}}">{{$v->coa_coachtype}}</option>
                    @endforeach
               </select>
          </td>
     </tr>
     <tr>
     	<td><b>状态 : </b></td>
     	<td>
	     	<select name="c_state">
                <option value="1">未使用</option>
                <option value="0">二手车</option>
            </select>
     	</td>
     </tr>
     <tr>
     	<td><b>保险有效期</b> :</td>
     	<td><input type="text" id="dateinfo" name="c_time" required></td>
     </tr>
     <br>
     <tr>
     	<td><b>可预约场地</b> : </td>
     	<td>
     		@foreach($reg_arr as $k=>$v)
          <input type="checkbox" name="sit_id[]" value="{{$v->sit_id}}">{{$v->sit_name}}
        @endforeach
     	</td>
     </tr>
     <tr>
		<td colspan="2" align="center">
		<br>
			<span><input type="submit" value="保存" class="btn btn-success"></span>
			<span><input type="reset" value="重置" class="btn btn-success"></span>
		</td>
     </tr>
   </table>
    </form>
<br>
<br>

<br>
</div>
<script src="{{url('api/jedate/jedate.js')}}"></script>
<script type="text/javascript">
     jeDate({
          dateCell:"#dateinfo",
          format:"YYYY-MM-DD",
          isinitVal:true,
          isTime:true,
          minDate:"2014-09-19",
          okfun:function(val){alert(val)}
     })
</script>
@stop